package ${package}.base;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface ISimpleDao<E extends BaseEntity> {
	
	void insert(E entity);
	
	void updateByPk(E entity);
	long updateByExample(@Param("example")E example, @Param("value")E value);
	
	void deleteByPk(long id);
	long deleteByExample(@Param("example")E example);
	
	E selectByPk(long id);
	List<E> selectByExample(@Param("example")E example);
	
}
